{% extends 'base.html' %}
{% block title %}{{ nameserver }}{% endblock %}
{% block content %}
<div style="float: right; margin: 10px;">
	<h1>Search</h1>
	<form action="/dns/nameserver/search/" method="GET">
	  <label for="q">Search: </label>
	  <input type="text" name="q" value="{{ query|escape }}">
	  <input type="submit" value="Search">
	</form>
</div>
<div style="float: left; padding: 10px; margin: 10px;">
	<p>
		<a href="/dns/nameserver/edit/{{ nameserver.id }}">edit</a> | <a href="/dns/nameserver/delete/{{ nameserver.id }}">delete</a>
	</p>
	<table>
		{{ form.as_table }}
	</table>
</div>
<div style="padding: 10px; margin: 10px;">
	{% load pagination_tags %}
	{% autopaginate domains 25 %}
	{% paginate %}
	<p>Domains on this Nameserver:</p>
	<div>
		<ul>
			{% for domain in domains %}
				<li><a href="/dns/domain/{{ domain.id }}">{{ domain }}</a></li>
			{% endfor %}
		</ul>
	</div>
</div>
{% endblock %}
